package com.hxm.downloadtest;

import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.Streaming;
import retrofit2.http.Url;
import rx.Observable;

/**
 * Created by HXM on 2017/1/5.
 * 描述：
 */

public interface ApiService {
    @Streaming
    @GET("{url}")
    Observable<ResponseBody> downloadImage(@Path("url") String url);

    @Streaming
    @GET
    Call<ResponseBody> downloadService();
}
